package com.aspose.cells;

public class GradientStopCollection extends CollectionBase {
   private GradientFill b;

   GradientFill a() {
      return this.b;
   }

   GradientStopCollection(GradientFill fill) {
      this.b = fill;
   }

   public void add(double position, CellsColor color, int alpha) {
      GradientStop var5 = new GradientStop(this);
      var5.setPosition(position);
      var5.a = color.a;
      var5.a(alpha);
      this.a(var5);
   }

   public void add(double position, Color color, int alpha) {
      GradientStop var5 = new GradientStop(this);
      var5.setPosition(position);
      var5.a = new zakp(true);
      var5.a.a(2, color.toArgb());
      var5.a(alpha);
      this.a(var5);
   }

   void a(GradientStop var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
   }

   public GradientStop get(int index) {
      return (GradientStop)this.a.get(index);
   }

   public void set(int index, GradientStop value) {
      this.a.set(index, value);
   }

   void a(int var1, GradientStop var2) {
      this.a.add(var1, var2);
   }

   void a(GradientStopCollection var1) {
      this.a.clear();

      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         GradientStop var3 = new GradientStop(this);
         var3.a(var1.get(var2));
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
      }

   }

   boolean b(GradientStopCollection var1) {
      if (this.getCount() != var1.getCount()) {
         return false;
      } else {
         for(int var2 = 0; var2 < var1.getCount(); ++var2) {
            if (!this.get(var2).b(var1.get(var2))) {
               return false;
            }
         }

         return true;
      }
   }
}
